|
![](/i/fill.gif) |
If you are able to model your object with a triangle mesh, the rendering
speed will increase quite considerably.
Of course this is not easy in every case, but in many cases it's just
a matter of work to create a (smooth) triangle mesh that corresponds to
the object.
An example: Suppose that your object is a coffee cup made with the difference
of two cylinders and the handle of the cup made with a half-torus. Now you
only have to create a mesh that corresponds to the "hollow" cylinder
representing the body of the cup and another representing the half-torus
representing the handle. Then just put all those triangles into a mesh and
that's it. All this can be done in povray itself (with #while-loops and
some math).
Just an alternative...
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |